package com.bluedot.queue.impl;

import com.bluedot.queue.OutQueue;

/**
 * service向controller传递返回结果使用的队列<br/>
 * 属性及方法都在父类中完成定义及实现,这个类主要作用是提供实现及维护单例
 */
public class ServiceControllerQueue extends OutQueue {

    private ServiceControllerQueue() {
    }

    public static ServiceControllerQueue getInstance() {
        return QueueHolder.serviceControllerQueue;
    }

    private static class QueueHolder {

        private static final ServiceControllerQueue serviceControllerQueue = new ServiceControllerQueue();
    }
}
